<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.tianxiabuyi.utils.ErrcodeUtil" %>
<%@ page import="com.tianxiabuyi.utils.LabelUtil" %>
<%@ page import="java.util.List" %>
<%@ include file="/common/validate.jsp"%>
<%
    // 请求全部标签类
    Integer type = input.getInt("type", LabelUtil.ZERO);
    Map<String, List<Map>> returnMap = LabelUtil.getLabelClass(hospital, type);
    if (returnMap == null || returnMap.isEmpty()) {
        msg.put("data", Collections.EMPTY_MAP);
        ErrcodeUtil.setErrcode(msg, ErrcodeUtil.NO_RESULT);
    } else {
        msg.put("data", returnMap);
    }
    Tools.encryptPrint(out, msg);
%>
